package admin

import (
	"go_auth/utils/commons"
	"go_auth/utils/redis"
)

/*
	添加黑名单
*/
func AddBlackList(key, data string, t, db int) bool {
	value := redis.SetStringValue(key, data, t, db)
	if commons.CheckErr(value) {
		return true
	}
	return false
}

func DeleteBlackList(key string, db int) {
	redis.Delete(key, db)
}
